﻿using Cemit.PolyProto;
using Google.Protobuf;
using System;
using System.Collections.Generic;
using System.Text;

namespace Cemit.PolyServer
{
    class DynamicHandle : IMessageHandle<D>
    {
        public void Execute(ClientState clientState, IMessage message)
        {
            foreach (var item in clientState.server.ReceiveDynamicMsg(clientState, (D)message))
            {
                clientState.Send(item);
            }
        }
    }
}
